package ch07;
class _06_PointTest {
	public static void main(String args[]) {		
		Point3D p3 = new Point3D();
		System.out.println("p3.x=" + p3.x);
		System.out.println("p3.y=" + p3.y);
		System.out.println("p3.z=" + p3.z);
	}
}
                      //Ex01
class Point3D extends Point {
	int z=30;

	Point3D() {
		this(100, 200, 300);
	}

	Point3D(int x, int y, int z) {
		super(x, y);
		this.z = z;
	}
}
/*
p3.x=100
p3.y=200
p3.z=300
*/